<template>
  <div class="box">
    <h1>
      <img :src="logoImg" alt="" />
    </h1>
    <div class="go">
      <p class="btn" @click="$router.push('/userInfo')">
        <img :src="go" alt="" />
      </p>
    </div>
  </div>
</template>

<script>
import logo from '@/assets/logo.png'
import go from '@/assets/点击进入.png'
export default {
  name: 'LoginIndex',
  data () {
    return {
      logoImg: logo,
      go: go
    }
  }
}
</script>

<style lang="less" scoped>
@keyframes xin {
  to {
    transform: scale(1.2);
  }
}
.box {
  background: url('../../assets/loginBgc.jpg') 0px;
  background-size: cover;
  height: 100%;
  color: #fff;
  text-align: center;
  h1 {
    width: 100%;
    float: left;
    margin-top: 25%;
    transform: scale(1.2);
  }
  .go {
    float: left;
    width: 100%;
    margin-top: 73%;
    bottom: 0;
    .btn {
      width: 220px;
      margin: 0 auto;
      cursor: pointer;
      border-radius: 5px;
      display: flex;
      justify-content: center;
      background: linear-gradient(to right, transparent, #fdf7c0, transparent);
      padding: 8px 0;
      transform: scale(1);
      animation: xin 1s linear infinite alternate;
    }
  }
}
</style>
